package com.kuang.bx.dao;

import com.kuang.bx.pojo.Blog;
import com.kuang.bx.pojo.Category;

import org.springframework.data.jpa.repository.JpaRepository;

import java.awt.print.Book;
import java.util.List;

public interface BlogDAO extends JpaRepository<Blog,Integer> {
    List<Blog> findAllByCategory(Category category);
    List<Blog> findAllByTitleOrAuthor(String keyword1,String keyword2);
}
